package com.systemmanger.service;

import com.bean.WmsTGroup;
import com.bean.WmsTUser;
import com.systemmanger.mapper.GroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @AUTHOR(闫晨航)
 * @date2021-12-07 18:47
 */
@Service
public class GroupService {
    @Autowired
    GroupMapper groupMapper;

    public List<WmsTGroup> getAllGroups() {
        return groupMapper.getAllGroups();
    }

    public List<WmsTGroup> getGroups(Map<String, Object> map) {
        return groupMapper.getGroups(map);
    }

    public WmsTGroup getOneGroup(String groupId) {
        return groupMapper.getOneGroup(groupId);
    }
}
